import { useRoutes } from 'react-router-dom'
import Hello from '../views/home'
import Text from '../views/home/text'
import Login from '../views/login'

const Routes = () => {
  const routes = useRoutes([
    {
      path: '/home',
      element: <Hello />,
      
    },
    {
      path: '/text',
      element: <Text />,
    },
    {
      path: '/',
      element: <Login />,
    }
  ])
  return routes
}
export default Routes
